<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
</head>

<body>
	<c:set var="username" value="${sessionScope.username }"></c:set>
	<c:choose>
		<c:when test="${not empty username }">
			<h3>尊敬的用户,${username},您已经登录</h3>
		</c:when>
		<c:otherwise>
			<h3>${message}</h3>
			<form action="<c:url value='/loginCustomer'/>" method="post">
				<ul>
					<li>账号:<input type="text" id="username" name="username"
						class="form-control" placeholder="请输入账号"></li>
				</ul>
				<ul>
					<li>密码:<input type="password" id="password" name="password"
						class="form-control" placeholder="请输入密码"></li>
				</ul>
				<button type="submit">登录</button>
			</form>
		</c:otherwise>
	</c:choose>
</body>
</html>